package services

// 转账状态
type TransferStatus int8

const (
	// 转账失败
	TransferStatusFailure TransferStatus = -1
	// 余额不足
	TransferStatusInsufficientBalance TransferStatus = 0
	// 转账成功
	TransferStatusSuccess TransferStatus = 1
)

// 转账类型
type ChangeType int8

const (
	// 创建账户
	AccountCreated ChangeType = 0
	// 进账
	AccountStoreValue ChangeType = 1
	// 红包支出
	EnvelopesExpenditure ChangeType = -2
	// 红包收入
	EnvelopesIncome ChangeType = 2
	// 红包过期退款
	EnvelopesExpiredRefund ChangeType = 3
)

// 资金交易变化标识
type ChangeFlag int8

const (
	// 收入
	FlagIncome ChangeFlag = 1
	// 支出
	FlagExpenditure ChangeFlag = -1
	// 创建账户
	FlagAccountCreated ChangeFlag = 0
)

// 账户类型
type AccountType int8

const (
	// 红包账户
	EnvelopeAccount AccountType = 1
)